import { Routes } from '@angular/router';
import {FirstComponent} from './first/first.component';
import {SecondComponent} from './second/second.component';
import {HomeComponent} from './home/home.component';
import {LoginComponent} from './login/login.component';
import { authGuard } from './auth.guard';

export const routes: Routes = [
    { path: '', component: HomeComponent , canActivate: [authGuard]},
    { path: 'first-component', component: FirstComponent , title: 'First component'},
    { path: 'login', component: LoginComponent , title: 'First component'},
    { path: 'second-component', component: SecondComponent , title: 'First 啊啊'},
];

